package com.mp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mp.pojo.WebsiteUrl;
import com.mp.pojo.WebsiteUser;
import org.apache.ibatis.annotations.Select;

/**
 * @author Ace
 * 2019/8/22
 */
public interface WebsiteUrlMapper extends BaseMapper<WebsiteUrl> {
    @Select("select wurl.* from  website_url wurl left join website_user wu on wurl.website_user_id = wu.id where wu.admin_id=#{adminId} and  wurl.status =1")
    WebsiteUrl getOneByAdminId(Integer adminId);
}
